<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes mymove{
            0%{
                left:0%;
            }
            25%{
                left:25%;
                background: purple;
            }
            50%{
                left:50%;
                transform: scale(2);
                text-shadow: red;
            }
            75%{
                left:25%;
                width:100px;
                height:100px;
                background: rosybrown;
            }
            100%{
                left:0%;
                background: royalblue;
                width:200px;
                height:100px;
            }
        }
        .ball{
            position: relative;
            margin: 100px;
            width:100px;
            height:100px;
            background: green;
            border: 1px solid red;
            border-radius: 50%;
            animation-name: mymove;
            animation-delay: 1s;
            animation-duration: 8s;
            animation-iteration-count:infinite;
        }
    </style>
</head>
<body>
    <div class="ball"></div>
</body>
</html>